from selenium.webdriver.common.by import By

from test_wechat.train_step2.PO.add_member_page import addmember_page
from test_wechat.train_step2.PO.basepage import BasePage


class contact_page(BasePage):
    def goto_addmember(self):
        """
        跳转到添加成员页面
        :return:
        """
        return addmember_page(self.driver)

    def get_member_list(self):
        """
        获取成员列表
        :return:
        """
        ele = self.driver.find_elements(By.CSS_SELECTOR,".member_colRight_memberTable_td:nth-child(2)")
        name_list = [i.text for i in ele]
        print(name_list)
        return name_list
    #return 空列表
